package com.notetool.util.tokenparser.iterator;

import com.notetool.util.tokenparser.Token;

public class ForwardTokenIterator extends TokenIterator
{

    ////////////////////
    // Members
    private Token token;
    
    ////////////////////
    // Contructors
    public ForwardTokenIterator (Token tkn)
    {
        token = tkn;
    }
    
    ////////////////////
    // TokenIterator implementation
    public Token current ()
    {
        return token;
    }
    
    public Token next ()
    {
        token = token.getNext ();
        return token;
    }
    
}
